package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste a extracao de metodos no comando for
public class For3 extends AtomicActor {

   public For3(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }
   
   public void fire() throws IllegalActionException {
      
       for(int i = 0;i < 10;i += metodo2()) {
           System.out.println(i);
       }
   
   }
   
   public int metodo2() {
     return 10;
   }

}
